static grant_entry_t *shared;
-/* /proc/xen/grant */
-static struct proc_dir_entry *grant_pde;
-
-
/*
* Lock-free grant-entry allocator
*/
*private_head = release;
}
+/*
+ * ProcFS operations
+ */
+
+#ifdef CONFIG_PROC_FS
+
+static struct proc_dir_entry *grant_pde;
+
static int grant_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long data)
{
return -ENOSYS;
}
+#endif /* CONFIG_PROC_FS */
int gnttab_resume(void)
{
for ( i = 0; i < NR_GRANT_ENTRIES; i++ )
gnttab_free_list[i] = i + 1;
+#ifdef CONFIG_PROC_FS
/*
* /proc/xen/grant : used by libxc to access grant tables
*/
grant_pde->read_proc = &grant_read;
grant_pde->write_proc = &grant_write;
+#endif
printk("Grant table initialized\n");
return 0;